package com.dpi.cgdc.data.enums;


/**
 * @Author: leipeng
 * @Date: 2022/12/5 9:38
 * @Description: 错误码枚举
 * @modifiedBy:
 * @Version: 1.0
 */
public enum ErrorCodeEnum {

    RESCODE_SUCCESS("00000", "操作成功"),
    INTERNAL_SERVER_ERROR_CODE("05000", "服务器内部错误"),
    RESCODE_NO_PARAM("10410", "参数缺失"),
    RESCODE_DATA_EXISTS("10111", "数据已存在"),
    RESCODE_MAXFILESIZE("10702", "上传文件大小受限"),
    RESCODE_FILE_FORMAT_ERROR("10703", "上传文件格式错误"),
    BODY_NOT_MATCH_CDOE("10421", "请求的数据格式不符"),
    METHOD_NOT_SUPPORTED_CODE("10401", "请求方式不正确"),
    UN_AUTHORIZED_CODE("10403", "请求未授权"),
    NOT_FOUND_CODE("10404", "未找到该资源"),
    REQUEST_PARAM_NULL_CODE("10410", "请求必填参数为空"),
    REQUEST_PARAM_ERROR_CODE("10411", "请求参数检验有错误"),
    JSON_PARSE_FAILED_CODE("10427", "请求JSON解析失败"),
    INPUT_CONTENT_ILLEGAL_CODE("10430", "用户输入内容非法"),
    REQUEST_TIMES_UNLIMITED_CODE("10501", "请求次数超出限制"),
    REQUEST_REPEATED_CODE("10506", "用户重复请求"),
    THIRD_SERVICE_ERROR_CODE("30001", "调用第三方服务出错"),
    MIDDLE_WARE_ERROR_CODE("30100", "中间件服务出错"),
    LOGIN_NAME_PWD_NOT_MATCH_CODE("10210", "用户密码和账户不匹配"),
    LOGIN_TIME_OUT_CODE("10230", "登录信息已过期,请重新弄登录!"),
    VISITE_NOT_AUTH_CODE("10301", "访问未授权"),
    INPUT_DATA_IS_USE_CODE("10413", "数据已被使用"),
    INPUT_SERVER_IS_USE_CODE("10414", "服务名称重复"),
    INPUT_DATA_IS_REPEAT_CODE("10415", "提交的信息内选择了重复数据或名称重复"),
    INPUT_DATA_NAME_IS_USE_CODE("10416", "数据名称重复"),
    INPUT_NAME_IS_REPEAT_CODE("10417", "名称重复"),
    INPUT_DATA_IS_OPERATION_CODE("10418", "数据正在执行操作中，不能进行覆盖，其它数据已执行"),
    REQUEST_SERVER_PUBLISH_SUCCESS_MESSAGE("10418", "数据正在执行操作中，不能进行覆盖，其它数据已执行"),
    CONNECT_TIME_OUT_CODE("10419", "网络链接超时");

    private String code;

    private String codeMsg;

    ErrorCodeEnum(String code, String codeMsg) {
        this.code = code;
        this.codeMsg = codeMsg;
    }

    public String getCode() {
        return code;
    }


    public String getCodeMsg() {
        return codeMsg;
    }

}
